package com.pbase.data.http.test;


import com.pbase.data.http.BaseHttpServer;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface BaseHttpServer2 extends BaseHttpServer {
    /**
     * 在 @Headers 注解的第一位添加该请求头，将会替换拦截器中配置的请求头信息
     */
    String REPLACE_HEADS = "replaceHeads: replaceHeads";

    @POST
    @Headers({ "Content-Type: application/json;charset=UTF-8"})
    Observable<String> paynotify(@Url String url, @Body RequestBody body);
}
